
package fileby.ctrl.sidebar;

import com.google.inject.Inject;
import fileby.model.IFileManager;
import fileby.model.ISourceHandler;
import fileby.util.properties.IPropertyBundleProvider;

/**
 *
 * @author Jacob
 */
public class SideBarItemListenerFactory implements ISideBarItemListenerProvider {

    private IPropertyBundleProvider propertyProvider;
    private ISourceHandler sourceHandler;
    private IFileManager fileManager;

    @Inject
    public SideBarItemListenerFactory(IPropertyBundleProvider propertyProvider,
            ISourceHandler sourceHandler,
            IFileManager fileManager) {

        this.propertyProvider = propertyProvider;
        this.sourceHandler = sourceHandler;
        this.fileManager = fileManager;
    }

    public SideBarItemListener create() {
        return new SideBarItemListener(propertyProvider, sourceHandler, fileManager);
    }

}
